﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsMeasureTemplate")]
    public partial class MsMeasureTemplate : BaseEntity
    {
        public MsMeasureTemplate()
        {
        }

        /// <summary>
        /// 户型图Id
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid HouseMapId { get; set; }

        /// <summary>
        /// 测量项编号
        /// </summary>
        [Key]
        [Column(TypeName = "varchar(10)")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public string Id { get; set; }

        /// <summary>
        /// 测量项名称
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(40)")]
        public string Title { get; set; }

        /// <summary>
        /// 测量项代码
        /// </summary>
        [Column(TypeName = "varchar(40)")]
        public string Code { get; set; }

        /// <summary>
        /// 设计值
        /// </summary>
        [Column(TypeName = "text")]
        public string DesignValues { get; set; }

        /// <summary>
        /// 设计值单位
        /// </summary>
        [Column(TypeName = "varchar(6)")]
        public string Unit { get; set; }

        /// <summary>
        /// 测量项类型, 人工测量项:0,机器测量项：1
        /// </summary>
        [Column(TypeName = "int")]
        public int? Type { get; set; }

        ///// <summary>
        ///// 创建者
        ///// </summary>
        //[Column(TypeName = "uuid")]
        //public Guid CreatedBy { get; set; }

        ///// <summary>
        ///// 创建日
        ///// </summary>
        //[Column(TypeName = "timestamp")]
        //public DateTime CreatedDate { get; set; }
    }
}